package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "好友")
public class GDFriend {

    @NoteField(value = "给一个好友赠送次数常量")
    public static final int FRIEND_SINGLE_SEND = 1;

    @NoteField(value = "好友数量上限")
    public static int FRIEND_MAX;

    @NoteField(value = "好友搜索显示数量上限")
    public static int SEARCH_MAX;

    @NoteField(value = "每日赠送次数上限")
    public static int GIFT_DAY_MAX;

    @NoteField(value = "领取礼物得到的好友点数")
    public static String GIFT_RECV_FRIENDSHIP;

    @NoteField(value = "每日可以领取友情点")
    public static int GIFT_FRIENDSHIP_LIMIT;

    @NoteField(value = "保存的好友申请记录上限")
    public static int APPLY_KEEP_MAX;

    @NoteField(value = "黑名单记录上限")
    public static int BLACKLIST_MAX;

    @NoteField(value = "举报最低等级要求")
    public static int REPORT_LEVEL;

    @NoteField(value = "每日举报次数上限")
    public static int REPORT_DAY_MAX;

    @NoteField(value = "英雄派遣之后立即获得的奖励")
    public static String AID_COMMIT_REWARD;

    @NoteField(value = "英雄被雇佣之后可以获得的奖励")
    public static String AID_ACCEPT_REWARD;

    @NoteField(value = "我提供的支援项被雇佣而得到奖励的最大次数")
    public static int HIRED_REWARD_TIMES_MAX;

    /** 读取excel中配置的参数 */
    public static void initialize(ParamSheet paramSheet) {
        FRIEND_MAX = GDParamTool.getInt(paramSheet,400, 0);
        SEARCH_MAX = GDParamTool.getInt(paramSheet,413, 3);
        GIFT_DAY_MAX = GDParamTool.getInt(paramSheet,401, 0);
        GIFT_RECV_FRIENDSHIP = GDParamTool.getString(paramSheet,408, "0:4:10");
        GIFT_FRIENDSHIP_LIMIT = GDParamTool.getInt(paramSheet, 409, 10);
        APPLY_KEEP_MAX = GDParamTool.getInt(paramSheet, 403, 99);
        BLACKLIST_MAX = GDParamTool.getInt(paramSheet,404, 50);
        REPORT_LEVEL = GDParamTool.getInt(paramSheet,405, 0);
        REPORT_DAY_MAX = GDParamTool.getInt(paramSheet,406, 0);
        AID_COMMIT_REWARD = GDParamTool.getString(paramSheet,415, "0:0:500");
        AID_ACCEPT_REWARD = GDParamTool.getString(paramSheet,412, "0:0:10000");
        HIRED_REWARD_TIMES_MAX = GDParamTool.getInt(paramSheet,414, 10);
    }
}
